package com.home.biz;

import com.github.pagehelper.PageHelper;
import com.home.base.biz.BaseBiz;
import com.home.entity.JobLog;
import com.home.entity.JobUser;
import com.home.mapper.JobLogMapper;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author ：chenxf
 * @date ：Created in 2019/6/19 10:31
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class JobLogBiz extends BaseBiz<JobLogMapper, JobLog> {
    /**
     *  查询QQ客服列表
     * @param limit  条数
     * @param offset  页码
     * @return
     */
    public List<JobLog> list(int limit, int offset){
        PageHelper.startPage(offset, limit);
        Example example = new Example(JobLog.class);
        example.setOrderByClause(" crt_time desc");
        return selectByExample(example);

    }
}
